
<%@page import="com.is.control.*" %>    
<%@page import="com.is.model.*" %>
<%@page import="com.is.util.*" %>
<% 
	request.setCharacterEncoding("UTF-8");
	int uid = ParamUtil.getInt(request,"id");
	User u = new User();
	u = UserControl.getUserById(uid);
	StringBuffer br = new StringBuffer();
	br.append("{\"name\":\""+u.getName()+"\",");
	br.append("\"username\":\""+u.getUsername()+"\",");
	br.append("\"password\":\""+u.getPassword()+"\",");
	br.append("\"picUrl\":\""+u.getPicUrl()+"\",");
	br.append("\"sex\":\""+u.getSex()+"\",");
	br.append("\"position\":\""+u.getPosition()+"\",");
	br.append("\"political\":\""+u.getPolitical()+"\",");
	br.append("\"birthday\":\""+u.getBirthday()+"\",");
	br.append("\"edulevel\":\""+u.getEduLevel()+"\",");
	br.append("\"email\":\""+u.getEmail()+"\",");
	br.append("\"phone\":\""+u.getPhone()+"\",");
	br.append("\"professional\":\""+u.getProfessionalSkill()+"\",");
	br.append("\"role\":\""+u.getRole()+"\"}");
	//System.out.print(br.toString());
	response.setContentType("text/json;charset=utf-8");
	String ss = br.toString();
	out.write(ss);
%>